﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ro.fortech.training.mvc.control;
using Model;


namespace View
{
    public partial class LoginScreen : Form
    {
        NavigateController screen = new NavigateController();
        AccountController acount = new AccountController();
       
 
        public LoginScreen()
        {
            InitializeComponent();

            
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            frmStartStopWork screenStart = new frmStartStopWork();
           
            if (screen.ShowScreenStart(txtUserName.Text, txtPassword.Text))
         
                {                   
                        screenStart.Show();
                        this.Hide();                    
                }
                
            else MessageBox.Show("Username or password incorrect!", "Warning", MessageBoxButtons.OK);
           
        }

      
    }
}
